package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.QwStockmonthinfoMapper;
import com.ruoyi.stock.domain.QwStockmonthinfo;
import com.ruoyi.stock.service.IQwStockmonthinfoService;

/**
 * 股票月信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-16
 */
@Service
public class QwStockmonthinfoServiceImpl implements IQwStockmonthinfoService 
{
    @Autowired
    private QwStockmonthinfoMapper qwStockmonthinfoMapper;

    /**
     * 查询股票月信息
     * 
     * @param monthInfoId 股票月信息主键
     * @return 股票月信息
     */
    @Override
    public QwStockmonthinfo selectQwStockmonthinfoByMonthInfoId(Long monthInfoId)
    {
        return qwStockmonthinfoMapper.selectQwStockmonthinfoByMonthInfoId(monthInfoId);
    }

    /**
     * 查询股票月信息列表
     * 
     * @param qwStockmonthinfo 股票月信息
     * @return 股票月信息
     */
    @Override
    public List<QwStockmonthinfo> selectQwStockmonthinfoList(QwStockmonthinfo qwStockmonthinfo)
    {
        return qwStockmonthinfoMapper.selectQwStockmonthinfoList(qwStockmonthinfo);
    }

    /**
     * 新增股票月信息
     * 
     * @param qwStockmonthinfo 股票月信息
     * @return 结果
     */
    @Override
    public int insertQwStockmonthinfo(QwStockmonthinfo qwStockmonthinfo)
    {
        return qwStockmonthinfoMapper.insertQwStockmonthinfo(qwStockmonthinfo);
    }

    /**
     * 修改股票月信息
     * 
     * @param qwStockmonthinfo 股票月信息
     * @return 结果
     */
    @Override
    public int updateQwStockmonthinfo(QwStockmonthinfo qwStockmonthinfo)
    {
        return qwStockmonthinfoMapper.updateQwStockmonthinfo(qwStockmonthinfo);
    }

    /**
     * 批量删除股票月信息
     * 
     * @param monthInfoIds 需要删除的股票月信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockmonthinfoByMonthInfoIds(Long[] monthInfoIds)
    {
        return qwStockmonthinfoMapper.deleteQwStockmonthinfoByMonthInfoIds(monthInfoIds);
    }

    /**
     * 删除股票月信息信息
     * 
     * @param monthInfoId 股票月信息主键
     * @return 结果
     */
    @Override
    public int deleteQwStockmonthinfoByMonthInfoId(Long monthInfoId)
    {
        return qwStockmonthinfoMapper.deleteQwStockmonthinfoByMonthInfoId(monthInfoId);
    }
}
